﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace animalgame
{        
     public enum EquipmentMaterial
     {
        rubber,//橡胶，防水，防电
        hempCotton,//棉麻，保暖
        wood,//木
        plastic,//塑料，防电
        metal,//金属，  导电性
        alloy,//合金
        specialChemistry//特殊化学
     }
    public struct Equipment
    {
        /// <summary
        ///名称
        /// </summary>
        public string name;
        /// <summary>
        /// 防御力
        /// </summary>
        public float defenseBonus;
        /// <summary>
        /// 攻击力
        /// </summary>
        public float aggressivity;
        /// <summary>
        /// 耐久度
        /// </summary>
        public float durability;
        /// <summary>
        /// 材质
        /// </summary>
        public EquipmentMaterial material;

        public void SetAttributes(string n, float defense, float a, float dur, EquipmentMaterial m)
        {
            name = n;
            defenseBonus = defense;
            aggressivity = a;
            durability = dur;
            material = m;
            Console.WriteLine("-------------------------");
            Console.WriteLine($"你成功创建一个装备，\n名称 :{name},\n攻击力加成：{aggressivity},\n防御力加成：{defenseBonus},\n耐久度为：{durability},\n材质为：{material}");
            Console.WriteLine("-------------------------");
            Console.WriteLine("牛逼啊这装备！！！");
            Console.WriteLine("-------------------------");
        }
     }
    
    public enum AnimalSpecies
    {
        luo,
        lin,
        kun,
        mao,
        yu
    }
    class animal
    {
        public float hp = 100;
        public float dp = 100;
        public float energy = 100;
        public AnimalSpecies species = AnimalSpecies.luo;
        public string[] equipGrid = new string[10];
        public void LoadEquipment(string equipname)
        {
            for (int i = 0; i < equipGrid.Length; i++)
            {
                if (equipGrid[i] == null )
                {
                    equipGrid[i] = equipname;
                }
            } 

        }

    }
    internal class Program
    {
        static void Main(string[] args)
        {

            Equipment crowbar = new Equipment();
            crowbar.SetAttributes("撬棍",1,89, 100,EquipmentMaterial.alloy);
           
        }
    }
}
